package com.lzx.shop.service;

import com.lzx.shop.dataobject.OrderDO;
import com.lzx.shop.enums.OrderStatus;
import com.lzx.shop.model.Order;
import com.lzx.shop.model.Result;

import java.util.List;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName OrderService.java
 * @Description TODO
 * @createTime 2021年03月21日 15:33:00
 */
public interface OrderService {


    OrderDO save(OrderDO object);

    List<OrderDO> findAll();

    OrderDO findById(String id);

    boolean update(OrderDO object);

    boolean DeleteById(String id);

    List<OrderDO> findByUserId(String userId);

    List<OrderDO> findAllNeed();

    OrderDO findByOrderNumber(String orderNumber);


    OrderDO updateOrderStatus(String orderNum, OrderStatus tradePaidSuccess);

    OrderDO updateProductPersonNumber(String orderNum);

    Result updateProduct(String productId, int num);
}
